home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / DJDEV203.ZIP / include / dirent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-15  |  1.3 KB  |  53 lines

  1. /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
  2. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  3. #ifndef __dj_include_dirent_h_
  4. #define __dj_include_dirent_h_
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  11.  
  12. #ifndef __STRICT_ANSI__
  13.  
  14. /* Definition of DIR requires many other headers; not included here to
  15.    avoid namespace pollution. */
  16. typedef struct __dj_DIR DIR;
  17.  
  18. struct dirent {
  19.   char d_namlen;
  20.   char d_name[256];
  21. };
  22.  
  23. int        closedir(DIR *dirp);
  24. DIR *        opendir(const char *_dirname);
  25. struct dirent *    readdir(DIR *_dirp);
  26. void        rewinddir(DIR *_dirp);
  27.  
  28. #ifndef _POSIX_SOURCE
  29.  
  30. extern int __opendir_flags; /* default is zero, used only by opendir */
  31. #define __OPENDIR_PRESERVE_CASE    0001
  32. #define __OPENDIR_FIND_HIDDEN    0002 /* ignored; on by default */
  33. #define __OPENDIR_FIND_LABEL    0004
  34. #define __OPENDIR_NO_HIDDEN    0x08 /* NOT 0002 for back-compatibility */
  35.  
  36. void seekdir(DIR *_dir, long _loc);
  37. long telldir(DIR *_dir);
  38. void __set_need_fake_dot_dotdot(DIR *_dir);
  39. void _lfn_find_close(int _handle);
  40.  
  41. #endif /* !_POSIX_SOURCE */
  42. #endif /* !__STRICT_ANSI__ */
  43. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  44.  
  45. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  46. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  47.  
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51.  
  52. #endif /* !__dj_include_dirent_h_ */
  53.